<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>全部评价</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="css/styles.css">
</head>
<body>
<!-- 你的html代码 -->
<div class="page page-current" id="page-index">
    <div class="content">
        <div class="content-inner">
            <div class="evaluate">
                <div class="evaluate-box">
                    <div class="evaluate-list">
                        <div class="evaluate-px">
                            <div class="datum-rw">
                                <div class="datum-name">
                                    <i><a href="javascript:;"><img src="images/tx.png" alt=""></a></i>
                                    <p><a href="javascript:;">喜欢花的美少女</a></p>
                                </div>
                                <div class="datum-time">
                                    <p><span>2018-08-16</span><span> 款式：粉玫瑰</span></p>
                                </div>
                            </div>
                            <div class="discuss">
                                <p>很喜欢这花，送给女友的，她非常的喜欢</p>
                                <div class="discuss-print">
                                    <ul>
                                        <li class="on">
                                            <a href="javascript:;"><img src="images/a1.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a2.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a3.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a4.png" alt=""></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="evaluate-px">
                            <div class="datum-rw">
                                <div class="datum-name">
                                    <i><a href="javascript:;"><img src="images/tx.png" alt=""></a></i>
                                    <p><a href="javascript:;">喜欢花的美少女</a></p>
                                </div>
                                <div class="datum-time">
                                    <p><span>2018-08-16</span><span> 款式：粉玫瑰</span></p>
                                </div>
                            </div>
                            <div class="discuss">
                                <p>很喜欢这花，送给女友的，她非常的喜欢</p>
                                <div class="discuss-print">
                                    <ul>
                                       <li class="on">
                                            <a href="javascript:;"><img src="images/a1.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a2.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a3.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a4.png" alt=""></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="evaluate-px">
                            <div class="datum-rw">
                                <div class="datum-name">
                                    <i><a href="javascript:;"><img src="images/tx.png" alt=""></a></i>
                                    <p><a href="javascript:;">喜欢花的美少女</a></p>
                                </div>
                                <div class="datum-time">
                                    <p><span>2018-08-16</span><span> 款式：粉玫瑰</span></p>
                                </div>
                            </div>
                            <div class="discuss">
                                <p>很喜欢这花，送给女友的，她非常的喜欢</p>
                                <div class="discuss-print">
                                    <ul>
                                       <li class="on">
                                            <a href="javascript:;"><img src="images/a1.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a2.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a3.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a4.png" alt=""></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="evaluate-px">
                            <div class="datum-rw">
                                <div class="datum-name">
                                    <i><a href="javascript:;"><img src="images/tx.png" alt=""></a></i>
                                    <p><a href="javascript:;">喜欢花的美少女</a></p>
                                </div>
                                <div class="datum-time">
                                    <p><span>2018-08-16</span><span> 款式：粉玫瑰</span></p>
                                </div>
                            </div>
                            <div class="discuss">
                                <p>很喜欢这花，送给女友的，她非常的喜欢</p>
                                <div class="discuss-print">
                                    <ul>
                                        <li class="on">
                                            <a href="javascript:;"><img src="images/a1.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a2.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a3.png" alt=""></a>
                                        </li>
                                        <li>
                                            <a href="javascript:;"><img src="images/a4.png" alt=""></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="Picture">
    <div class="Picture-box">
        <a href="javascript:;" class="mine open"><img src="images/up_ico.png" alt=""></a>
        <a href="javascript:;" class="Next open"><img src="images/next_ico.png" alt=""></a>
        <div class="theme">
            <img src="" alt="">
        </div>
        <a href="javascript:;" class="gb-btn">×</a>
    </div>
</div>
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script>
	$('.discuss-print ul li').height($('.discuss-print ul li').width());
	$('.evaluate .b-banner').height($('.evaluate .b-banner').width());
    /*弹框大图*/
	$('.gb-btn').click(function () {
		$('.Picture').hide();
		$('body').css('overflow','');
	});
	var imgNum = $(".discuss-print ul li").length;
	var index =0;
	function selectimg(index) {
		$('.discuss-print ul li').removeClass('on');
		$(".discuss-print ul li").eq(index).addClass("on");
		$('.theme').height($('.theme img').height());
		$('.theme img').attr('src',$('.discuss-print .on').find('img').attr('src'));
	}
    /*点击列表图*/
	$('.discuss-print ul li').click(function () {
		$('body').css('overflow','hidden');
		index = $(".discuss-print ul li").index(this);
		$('.discuss-print ul li').removeClass('on');
		$(this).addClass("on");
		$('.discuss-print ul li img').css('display','block');
		$('.Picture').show();
		$('.theme img').attr('src',$('.discuss-print .on').find('img').attr('src'));
		$('.theme').height($('.theme img').height());
	});
	$(".mine").click(function(){
		index --;
		if(index < 0){
			index = imgNum-1;
			selectimg(index);
		}
		selectimg(index);
	});
	$(".Next").click(function(){
		index ++;
		if( index > imgNum-1){
			index = 0;
			selectimg(index);
		}
		selectimg(index);
	});
</script>
</body>
</html>
